using UnityEngine;

public class CareerLock : MonoBehaviour
{
	public string lastCareerWinTag = string.Empty;

	public string lastCareerLevel = string.Empty;

	private void Start()
	{
		if (PlayerPrefs.GetInt(lastCareerWinTag) == 1)
		{
			base.gameObject.SetActive(value: false);
		}
	}

	public void BackToPrevious()
	{
		UnityEngine.SceneManagement.SceneManager.LoadScene(lastCareerLevel);
	}
}
